package com.resifind.www.exception;

import com.resifind.www.constant.ErrorCode;

/**
 * @author 36069
 */
public class BlacklistAndFavourException extends BaseException{
    public BlacklistAndFavourException(ErrorCode errorCode) {
        super(errorCode);
    }

    public static BlacklistAndFavourException blacklistAlreadyExists(){
        return new BlacklistAndFavourException(ErrorCode.BLACKLIST_ALREADY_EXISTS);
    }

    public static BlacklistAndFavourException favourAlreadyExists(){
        return new BlacklistAndFavourException(ErrorCode.FAVOUR_ALREADY_EXISTS);
    }

    public static BlacklistAndFavourException blacklisted(){
        return new BlacklistAndFavourException(ErrorCode.BLACKLISTED);
    }
}
